package com.vegetable.modules.entity.outbound.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 销售出库单
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SalesOut对象", description="销售出库单")
public class SalesOutStatisticsVO extends BaseEntity {

    private Long outDetailId;

    private BigDecimal costWeight;

    private String stockBatchNo;

    private Integer shiftNumber;

    private BigDecimal shiftWeight;

    @ApiModelProperty(value = "代办包装材料名称")
    private String costClauseName;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    private BigDecimal number;

    @ApiModelProperty(value = "价格")
    private BigDecimal money;

    @ApiModelProperty(value = "模式：0待办料，1公司料，2班组料")
    private Integer mode;
    @ApiModelProperty(value = "订单类型：0代办订单 1打包加工")
    private Integer orderType;

    @ApiModelProperty(value = "每件标准数量")
    private BigDecimal standardNumber;

    @ApiModelProperty(value = "订单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    private String agentName;

    private Long stockOrderId;

    private Long stockDetailId;

    private Long stockId;

    @ApiModelProperty(value = "包装成本组成")
    private String packageCost;

    private BigDecimal initWeight;

    @ApiModelProperty(value = "成本归属：0蔬菜成本，1包装成本")
    private Integer packBelong = 1;
}
